package com.letoken.platform.repo.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 作者
 * @since 2022-11-24
 */
@Getter
@Setter
@TableName("admin_issue_config")
@ApiModel(value = "AdminIssueConfig对象", description = "")
public class AdminIssueConfig extends Model<AdminIssueConfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("最小发行量")
    @TableField("min_issue_count")
    private Integer minIssueCount;

    @ApiModelProperty("最大发行量")
    @TableField("max_issue_count")
    private Integer maxIssueCount;

    @ApiModelProperty("奖励百分比（默认两倍）")
    @TableField("reward_rate")
    private Integer rewardRate;

    @ApiModelProperty("释放周期(天)")
    @TableField("circulate_duration")
    private Integer circulateDuration;

    @ApiModelProperty("周期流通比例")
    @TableField("circulate_rate")
    private Integer circulateRate;

    @ApiModelProperty("分享流通奖励(周期）")
    @TableField("share_accelerate_round")
    private Integer shareAccelerateRound;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("最大加速周期  天")
    @TableField("max_accelerate")
    private Integer maxAccelerate;

    @ApiModelProperty("生态建设值哔哩")
    @TableField("eco_rate")
    private BigDecimal ecoRate;

    @ApiModelProperty("减少生态建设值哔哩")
    @TableField("reduce_eco_rate")
    private BigDecimal reduceEcoRate;

    @TableField("issue_amount")
    private BigDecimal issueAmount;

    @TableField("rate")
    private Integer rate;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
